import { baseAjax } from '../baseAjax'

// 获取详情
export function getDetail (id, successHandle, failHandle) {
  let _url = '/ent/customer/detail/' + id
  baseAjax(_url, {}, 'get', successHandle, failHandle)
}

// 新增客户
export function saveCustomer (data, successHandle, failHandle) {
  baseAjax('/ent/customer/save', data, 'post', successHandle, failHandle)
}

// 修改客户
export function updateCustomer (data, successHandle, failHandle) {
  baseAjax('/ent/customer', data, 'put', successHandle, failHandle)
}
